import request from '@/utils/request'

import variable from '@/utils/variables'
const baseURL = variable.URL.baseURL

// 新闻列表
export function getNewsList(query) {
  return request({
    baseURL: baseURL,
    url: '/news/select_hotlists',
    method: 'GET',
    params: query
  })
}

// 套餐购买 创建套餐订单
export function orderPayCreate(query) {
  return request({
    baseURL: baseURL,
    url: '/order/package/insert_order',
    method: 'POST',
    data: query
  })
}

// 套餐购买 创建套餐支付
export function orderPayBuild(query) {
  return request({
    baseURL: baseURL,
    url: '/order/pay/package/build_param',
    method: 'POST',
    data: query
  })
}
